Method and apparatus for encoding/decoding video using high-precision filter

ABSTRACT

Disclosed is a video encoding apparatus. The video encoding apparatus includes a prediction unit for generating a prediction block based on interpolating sub-samples of a reference block referenced by a motion vector of a current block. The video encoding apparatus further includes a subtraction unit for generating a residual block based on subtracting the prediction block from the current block and a transform unit for generating a frequency-transformed block based on transforming the residual block. The video encoding apparatus further includes a quantization unit for generating a quantized frequency-transformed block based on quantizing the frequency-transformed block and an encoding unit for encoding the quantized frequency-transformed block into a bitstream.

CROSS REFERENCE TO RELATED APPLICATIONS

The instant application is a continuation application ofPCT/KR2011/007418 filed Oct. 6, 2011, which claims priority to KoreanPatent Application No. 10-2010-0097547, filed on Oct. 6, 2010, andKorean Patent Application No. 10-2011-0072196, filed on Jul. 21, 2011,the entire contents of which are incorporated herein by reference.

TECHNICAL FIELD

The present disclosure relates to a method and an apparatus forencoding/decoding video using a high-precision filter.

BACKGROUND

The statements in this section merely provide background informationrelated to the present disclosure and are not admitted as prior art.

Moving Picture Experts Group (MPEG) and Video Coding Experts Group(VCEG) have developed a new standard of video compression technologythat is superior to the existing MPEG-4 Part 2 and H.263 standards. Thenew standard is called H.264/AVC (Advanced Video Coding) and was jointlyannounced as MPEG-4 Part 10 AVC and ITU-T Recommendation H.264.H.264/AVC (hereinafter, simply referred to as H.264) has significantlyimproved picture quality and performance by using various encodingmethods. In addition, new standardization for higher picture qualitythan high-definition (HD) is under discussion by Joint CollaborativeTeam on Video Coding, the joint team of MPEG and VCEG.

As the existing moving picture encoding methods, an intra predictionencoding method and an inter prediction encoding method have been used.The intra prediction encoding method predicts a block by using aprediction value from a block encoded within a frame being currentlyencoded. The inter prediction encoding method predicts a block of acurrent frame by estimating a motion from a previously reconstructedframe.

In the intra prediction method for a luma signal, an intra 4×4prediction, intra 16×16 prediction and intra 8×8 prediction have beenused according to a prediction direction and the size of a block to beencoded.

FIG. 1 is a diagram of nine 4×4 intra prediction modes.

Referring to FIG. 1, the intra 4×4 prediction includes nine predictionmodes: a vertical mode, a horizontal mode, a direct current (DC) mode, adiagonal down-left mode, a diagonal down-right mode, a vertical-rightmode, a horizontal-down mode, a vertical-left mode and a horizontal-upmode.

FIG. 2 is a diagram of four 16×16 intra prediction modes.

Referring to FIG. 2, the intra 16×16 intra prediction includes fourprediction modes: a vertical mode, a horizontal mode, a DC mode and aplane mode. Similarly to the intra 16×16 prediction, the intra 8×8prediction also includes four prediction modes.

In an inter prediction method (inter predictive coding) for a videohaving a 4:2:0 video format, motion compensation has been used.Specifically, a video frame is divided, and a current block is predictedby estimating a motion from a previously encoded frame. If the blocksize of motion compensation is reduced for use, a current block can bepredicted with higher accuracy. However, the requirement to encodemotion vector information for each block results in an increase in theamount of code being encoded. In addition, when the motion compensationis performed, a more accurate motion vector is obtained by looking intonot only motion vectors in integer samples having integer pixels butalso in sub-samples having a ¼ sample resolution with respect to a lumacomponent and a ⅛ sample resolution with respect to a chroma component.However, since luma and chroma samples of sub-sample positions do notexist within a reference picture, generating these values byinterpolating neighboring samples in the reference picture is necessary.

SUMMARY

One aspect of this description relates to a video encoding apparatus.The video encoding apparatus includes a prediction unit for generating aprediction block based on interpolating sub-samples of a reference blockreferenced by a motion vector of a current block. The video encodingapparatus further includes a subtraction unit for generating a residualblock based on subtracting the prediction block from the current blockand a transform unit for generating a frequency-transformed block basedon transforming the residual block. The video encoding apparatus furtherincludes a quantization unit for generating a quantizedfrequency-transformed block based on quantizing thefrequency-transformed block and an encoding unit for encoding thequantized frequency-transformed block into a bitstream.

Another aspect of this description relates to a video decodingapparatus. The video decoding apparatus includes a decoding unit forextracting a quantized frequency-transformed block from a bitstream andan inverse quantization unit for reconstructing a frequency-transformedblock based on inversely quantizing the quantized frequency-transformedblock. The video decoding apparatus further includes an inversetransform unit for reconstructing a residual block based on inverselytransforming the frequency-transformed block and a prediction unit forgenerating a prediction block based on interpolating sub-sample valuesof a reference block referenced by a motion vector of a current block.The video decoding apparatus further includes an addition unit forreconstructing the current block based on adding the reconstructedresidual block and the prediction block.

Another aspect of this description relates to a video decoding method.The video decoding method includes performing a decoding process forgenerating a quantized frequency-transformed block from a bitstream andperforming an inverse quantization process for reconstructing afrequency-transformed block by inversely quantizing the quantizedfrequency-transformed block. The video decoding method further includesperforming an inverse transform process for reconstructing a residualblock by inversely transforming the frequency-transformed block andperforming a prediction process for generating a prediction block from avalue obtained based on interpolating sub-sample values of a referenceblock referenced by a motion vector of a current block. The videodecoding method further includes performing an addition process forreconstructing the current block by adding a reconstructed residualblock and the prediction block.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a diagram of nine 4×4 intra prediction modes;

FIG. 2 is a diagram of four 16×16 intra prediction modes;

FIG. 3 is a diagram of a motion prediction using a sub-sample in a lumacomponent;

FIG. 4 is an example of a 6-tap finite impulse response (FIR) filter;

FIG. 5 is an example of linear interpolation of a chroma sample;

FIG. 6 is a block diagram of a video encoding apparatus according to atleast one embodiment of the present disclosure;

FIG. 7 is a diagram of a process of interpolating sub-sample valueswithin a block by a prediction unit according to at least one embodimentof the present disclosure;

FIG. 8 is a block diagram of a configuration of a video decodingapparatus according to at least one embodiment of the presentdisclosure;

FIG. 9 is a flow chart of a video encoding method according to at leastone embodiment of the present disclosure; and

FIG. 10 is a flow chart of a video decoding method according to at leastone embodiment of the present disclosure.

DETAILED DESCRIPTION

The embodiments of the present disclosure are directed to improve videocompression efficiency by using a high-precision filter more accuratethan linear interpolation during video interpolation and improvesubjective picture quality by effectively reconstructing a video.

A video encoding apparatus and a video decoding apparatus according toone or more embodiments, as described below, is a user terminal, such asa personal computer (PC), a notebook computer, a personal digitalassistant (PDA), a portable multimedia player (PMP), a PlayStationPortable (PSP), or a wireless communication terminal, a smart phone, orthe like, or a server terminal, such as an application server and aservice server, and refer to a variety of apparatuses equipped with, forexample, a communication device, such as a communication modem forperforming communications between various devices or wired/wirelesscommunication networks, a memory for storing various programs forencoding or decoding videos or performing inter or intra prediction forencoding or decoding, and relevant data, and a microprocessor forexecuting the programs to perform operations and controls.

In addition, the video encoded into a bitstream by the video encodingapparatus is transmitted in real time or non-real-time to the videodecoding apparatus for decoding the same where the video isreconstructed and reproduced after being transmitted via awired/wireless communication network including Internet, a wirelessshort range or personal area network, wireless LAN network, WiBro (akaWiMax) network, mobile communication network, or communication interfacesuch as a cable or universal serial bus (USB).

In general, a moving picture is composed of a series of pictures, eachof which may be divided into predetermined areas, such as frames orblocks. When a picture is divided into blocks, the divided blocks arelargely classified into intra blocks and inter blocks according to theencoding method. The intra block refers to a block encoded by an intraprediction coding method. The intra prediction encoding is a method thatgenerates a prediction block by predicting pixels of a current block byusing pixels of blocks reconstructed by being previously encoded anddecoded within a current picture being currently encoded, and encodes adifference value from the pixels of the current block. The inter blockrefers to a block encoded by an inter prediction coding. The interprediction coding is a method that generates a prediction block bypredicting a current block in a current picture with reference to one ormore previous pictures or next pictures, and encodes a difference valuefrom the current block. A frame referenced for encoding or decoding thecurrent picture is referred to as a reference frame.

FIG. 3 is a diagram of a motion prediction using a sub-sample in a lumacomponent.

Referring to FIG. 3, a motion vector is obtained up to a sub-sampleposition of a ¼ sample in an integer sample unit.

FIG. 4 is an example of a 6-tap finite impulse response (FIR) filter.

Referring to FIG. 4, a pixel value at the ½ sample position isinterpolated by using values of six integer-pixels, i.e. pixels atinteger position, and six filter coefficients {1, −5, 20, 20, −5, 1},and the ¼ sample component is interpolated by linear interpolation usingthe interpolated ½ sample pixel value and integer pixel values or two ½sample pixel values. The pixel value of a ¼ sample position isinterpolated as shown in the following exemplary equation.b′=(1×E+(−5)×F+20×G+20×H+(−5)×I+1×J)b=b′/32a=((32×G)+b′)/64  (Equation)

The sub-samples can be more accurately interpolated, and different ormodified filter coefficients may be used for that purpose. Referring tothe above equation, when interpolating a ½ sample value, an adjusted ½sample value, b′ of the above equation, is first calculated bymultiplying integer-pixel values by integer numerators of the filtercoefficients, followed by summation thereof. The adjusted ½ sample valueis calculated without division operation and the ½ sample value isfinally derived just by dividing the adjusted ½-sample value by a commondenominator of the filter coefficients, 32. As such, the filtercoefficients are applied to integer pixels in an order of the integernumerators and the common denominator. The adjusted ½ sample value isused for linearly interpolating a ¼ sample, instead of the ½ samplevalue itself. The linearly interpolated ¼ sample equals to a mean valueof the ½-sample and a integer-pixel near to the ¼ sample, G of the aboveequation. So the integer-pixel value G is multiplied by the commondenominator of the ½ sample coefficients, 32, and then the sum of thesetwo values, b′ and 32*G of the above equation is divided by 64, twicethe common denominator. In this way, an error caused by a divisionoperation in the midcourse is avoided and more accurate sub-samplevalues can be calculated.

FIG. 5 is an example of linear interpolation of a chroma sample.

Referring to FIG. 5, as shown in the following exemplary equation,bi-linear interpolation using four integer pixel values is performed tointerpolate a pixel value of a ⅛ sub-sample by multiplying weight valuesin consideration of the position of each sub sample.a=[(8−dx)×(8−dy)×A+dx×(8−dy)×B+(8−dx)×dy×C+dx×dy×D)]/64.  (Equation):

That is, in the example of FIG. 5,{a=[(6×5×A)+(2×5×B)+(6×3×C)+(2×3×D)]/64}

The ⅛ sub-sample interpolation is performed because the chroma signal is¼ times (horizontal: ½, vertical: ½) the resolution of the luma signalin the case of a 4:2:0 video format.

In this manner, when the chroma sample is interpolated with up to a ⅛sample resolution by using only linear interpolation, the chroma sampleis not as accurate as compared with a 6-tap FIR filter. Therefore, whenthe chroma sample is encoded, compression efficiency is lowered.

FIG. 6 is a block diagram of a video encoding apparatus according to atleast one embodiment of the present disclosure.

The video encoding apparatus 600 according to one or more embodiments ofthe present disclosure encodes a current block of a video by generatinga sub-sample prediction value of a chroma component with the use of amotion vector value of a luma component. As shown in FIG. 6, the videoencoding apparatus 600 includes a prediction unit 610, a subtractionunit 620, a transform unit 630, a quantization unit 640 and an encodingunit 650.

An input video to be encoded is input in units of macro blocks. In atleast one embodiment, the macro block has an M×N form, wherein each of Mand N has a magnitude of 2^(n) and are equal to or different from eachother.

The prediction unit 610 generates a prediction block of a chromacomponent from a value obtained by interpolating a sub-sample componentvalue of a chroma component of a reference block which is referenced bya motion vector of a chroma component of a current block, by using anFIR filter and linear interpolation.

The prediction unit 610 generates a prediction block by using anotherframe so as to predict a current macro block, in some embodiments. Thatis, the prediction unit 610 generates a motion vector through a motionestimation in a reconstructed previous frame having already undergone anencoding process, and generates a prediction block in a motioncompensation process using the motion vector. In this case, theprediction unit 610 uses the same motion vector value in the chromacomponent by using the motion vector value of the luma component, andgenerates a prediction block having a prediction value obtained byinterpolating a sub-sample component value of a reference frame which isindicated by the motion vector, by using an FIR filter and linearinterpolation, in some embodiments.

The subtraction unit 620 generates a residual signal by calculating adifference between an original pixel value of each pixel of a currentblock and a prediction value generated by the prediction unit 610.

The transform unit 630 transforms the residual signal generated by thesubtraction unit 620 into a frequency domain. The transform unit 630transforms the residual signal into the frequency domain by usingvarious transform techniques for transforming a time-axis video signalinto a frequency axis, such as a discrete cosine transform (DCT)transform or a wavelet transform, in some embodiments.

The quantization unit 640 quantizes a frequency-transformed blockincluding the residual signal transformed into the frequency domain bythe transform unit 630. As the quantization method, a variety ofquantization methods are used, in some embodiments. Examples of thequantization methods include a Dead Zone Uniform Threshold Quantization(DZUTQ) and a Quantization Weighted Matrix.

The encoding unit 650 encodes the quantized frequency-transformed blockwhich is composed of frequency coefficients quantized by thequantization unit 640, into a bitstream. An entropy encoding technologyis used for the encoding purpose, in some embodiments, though thepresent disclosure is not limited thereto, and a variety of otherencoding technologies are used.

In addition, the encoding unit 650 includes a bitstream obtained byencoding quantization frequency coefficients and variety of informationwhich is necessary for decoding the encoded bitstream, into encodeddata. That is, the encoded data has a field which includes a bitstreamobtained by encoding a coded block pattern (CBP), a delta quantizationparameter, and a quantization frequency coefficient and another fieldwhich includes bits for information necessary for prediction (forexample, intra prediction mode in the case of intra prediction, ormotion vector in the case of inter prediction), in some embodiments.

The inverse quantization unit 660 inversely quantizes the transformedand quantized residual block (that is, quantized frequency-transformedblock), and the inverse transform unit 670 inversely transforms theinversely-quantized and transformed residual block. In this manner, theresidual block is reconstructed. The inverse quantization and theinverse transform are performed by inversely performing the transformand quantization processes which are respectively performed by thetransform unit 630 and the quantization unit 640. That is, the inversequantization unit 660 and the inverse transform unit 670 perform theinverse quantization and the inverse transform by using informationabout the transform/quantization (for example, information abouttransform/quantization types), which is generated and transmitted fromthe transform unit 630 and the quantization unit 640.

The addition unit 680 generates a reconstructed block by adding theprediction block generated by the prediction unit 610 and the residualblock generated by the inverse transform unit 670.

The frame memory 690 stores the block reconstructed by the addition unit680 and uses the reconstructed block as the reference block so as togenerate the prediction block during the intra or inter prediction.

FIG. 7 is an exemplary diagram of a process of interpolating asub-sample value within a block by the prediction unit 610 according toat least one embodiment of the present disclosure.

The interpolation of the sub-sample shown in FIG. 7 is performed byusing the methods of Equations 1 to 4 below, in some embodiments.d′=(1×A+(−5)×B+20×C+20×D+(−5)×E+1×F)d=d′/32   Equation 1

The ½ sub-sample value is obtained by using a ½ sample amplificationvalue obtained by multiplying adjacent integer pixel values by apredetermined value and adding the multiplication values.

The ½ sub-sample value is obtained by using left-side three integerpixel values A, B and C and right-side integer pixel values D, E and F.b′=(32×C)+d′b=((32×C)+d′)/64   Equation 2

The ¼ sub-sample value is obtained by using the closest integer pixelvalue C and the ½ sample amplification value d′. “b” is obtained bydivision after linearly interpolating the closest integer pixel value Cand the ½ sample amplification value d′, instead of directlyinterpolating the ½ sub-sample. Therefore, an error occurring whenobtaining “d” is removed.a′=(64×C)+b′a=((64×C)+b′)/128   Equation 3

b′ is obtained by using the closest integer pixel value C and the ½sample amplification value d′, in some embodiments. Therefore, the ⅛sub-sample value is obtained by using the closest integer pixel value Cand the ½ sample amplification value d′, in some embodiments.a=((w1×(C×32)+w2×d′)/((w1+w2)*32)   Equation 4

In Equations 1, 2, 3 and 4 and FIGS. 7, A, B, C, D, E and F representinteger pixel values of the chroma component, and d, b, and a represent½ sub-sample of the chroma component, ¼ sub-sample of the chromacomponent, and ⅛ sub-sample of the chroma component, respectively.

As shown in Equation 1, the ½ sub-sample value of the chroma componentis generated by using a high-precision filter (herein, thehigh-precision filter may use various filters, such as an FIR filter).As shown in Equation 2, the ¼ sub-sample value uses the high-precisionfilter and the linear interpolation. In particular, in the case of the ⅛sub-sample, as shown in Equation 3, the high-precision linearinterpolation is performed by using the integer pixel and the ¼sub-sample. In addition, as shown in Equation 4, the high-precisionlinear interpolation is performed by using the integer pixel and the ½sub-sample. In this case, w1 and w2 represent weight values to bemultiplied by the integer pixel and the ½ sub-sample. The ½ sub-samplevalue (for example, ‘d’) using Equation 1 and the ¼ sub-sample value(for example, ‘b’) using Equation 2 are generated by using thehigh-precision FIR filter. The ⅛ sub-sample value (for example, ‘a’)using Equation 3 is generated through the linear interpolation betweentwo pixel values. Therefore, more accurate values can be generated ascompared with the case where all sub-samples are interpolated by usingthe linear interpolation alone.

All division operations used in Equations 1 to 5 improve the processingspeed by using a bit shift operation (>>, <<), in some embodiments.

In addition, for rounding off to the nearest integer in Equations 1 to4, half the divisor may be added in advance to the dividend. Equation 5below is an equation in which the round-off operation is added toEquation 3.a=((64×C)+b′+64)/128   Equation 5

The FIR filter is a type of a digital filter and performs filtering withonly predetermined values of input signals. Therefore, if calculating animpulse response, which is a characteristic function of a filter, theFIR filter has a finite length. In addition, in the equation of the FIRfilter, the FIR has no feedback component. Therefore, when implementingthe same characteristic, order is increased and execution time isincreased. However, the FIR filter is used when a phase shift (that is,maintenance of waveform between input and output) is important, in someembodiments.

In addition, in the high-precision FIR filter used herein, the ½sub-sample is generated by using an FIR filter, and the ¼ sub-sample, asshown in Equation 2, is generated not by using the ½ sub-sample value (din Equation 1) obtained by dividing a value (d′) using the FIR filter by32, but by linearly interpolating a value (32×C) obtained by multiplyingan integer pixel value by 32 and a value before the division by 32 (thatis, an FIR filtering result value d′ obtained when the ½ sub-samplevalue is obtained). Therefore, information loss due to the divisionoperation in the midcourse is prevented, thereby interpolating a valuemore accurately.

In addition, all sub-sample values, such as d′ of Equation 1, b′ ofEquation 2, and a′ of Equation 3, and the integer pixel values, in whicha bit is increased to have the same bit number as the sub-sample value,is used as sample values when obtaining a prediction block of a currentblock in the next step. After obtaining the prediction block, the pixelvalues are divided by the weight value, such that a bit number persample of the prediction block becomes equal to a bit number per sampleof the current block. Therefore, higher performance is exhibited.

In addition, Equation 4 has been described as an equation forcalculating only the interpolated value of a (⅛ sub-sample). However,even in the case of obtaining b (¼ sub-sample), b is obtained by settingthe weight values w1 and w2 differently from the case of obtaining a, insome embodiments. In a similar manner, f is obtained if using f′ insteadof b′, f instead of b, and D instead of C in Equation 2, and g isobtained if using g instead of a′, g instead of a, f′ instead of b′, finstead of b, and D instead of C in Equation 3. Meanwhile, c which is ⅛sub-sample is obtained by interpolating b and d, and e is obtained byinterpolating d and f. Therefore, similarly to a or g, c and e isobtained by using the closest integer pixel value C and ½ sampleamplification value d′.

As such, ½ sub-sample is obtained by obtaining the adjacent integerpixel values. Finer sub-sample values (¼ sub-sample, ⅛ sub-sample, orthe like) are interpolated by using less finer adjacent sub-samplevalues or close integer pixel values (that is, ½ sub-sample and integerpixel are used when calculating ¼ sample value), in some embodiments.The use of sub-sample values or integer pixel values so as tointerpolate sub-samples located at various positions can be derived by aperson having ordinary skill in the art even though the case of allsub-samples is not described.

In addition, interpolation methods other than the high-precision FIRfilter and linear interpolation used herein are used, in someembodiments. However, it is important to use the FIR filter with 6 ormore taps for ½ sample, and to perform the interpolation to have thehigh-precision function, as shown in Equation 2, for ¼ sample.

In the case of a 4:2:0 video format, the reference block within thereference frame is interpolated by using Equations 1 to 3. In the caseof a 4:4:4 video format, the luma component and the chroma componentwithin the reference block are equal in resolution. Therefore, like theluma component, the chroma component has only to be interpolated up to ¼sample position. Therefore, if the interpolation of ⅛ sample position inEquation 3 is omitted, in some embodiments, the interpolation is used inthe 4:4:4 video format.

In addition, in the case of a 4:2:2 video format, the chroma componentof a horizontal direction is ½ times the resolution of the lumacomponent. Therefore, the sub-sample is generated by interpolating thechroma component of the horizontal direction up to ⅛ sub-sample likeEquations 1 to 3, and interpolating the chroma component of a verticaldirection up to ¼ sub-sample by using Equations 1 and 2 like the 4:4:4video format.

In addition, in Test Model under Consideration (TMuC) for image pictureof the existing HD or higher, the luma component is interpolated up to ⅛sub-sample, in some embodiments. Therefore, in the 4:2:0 video format,the chroma component is interpolated up to 1/16 sub-sample, in someembodiments. Therefore, at the most, the ⅛ sub-position is made in theabove-described embodiment of the present disclosure, and the 1/16sub-sample position is interpolated again by using the linearinterpolation.

Meanwhile, in the foregoing embodiment, the filtering and interpolationmethods have been described while taking the chroma component as anexample, but these methods are also applied to various blocks, such asluma component and blocks of R, G and B colors, as well as the chromacomponent. In a decoding method which is to be described below, thefiltering and interpolation methods are equally applied to chromacomponent, luma component, and various blocks, such as blocks of R, Gand B colors.

FIG. 8 is a block diagram of a configuration of a video decodingapparatus according to at least one embodiment of the presentdisclosure.

As shown in FIG. 8, a video decoding apparatus 800 according to one ormore embodiments of the present disclosure decodes a current block of avideo by generating a sub-sample prediction value of a chroma componentby using a motion vector value of a luma component. The video decodingapparatus 800 includes a decoding unit 810, an inverse quantization unit820, an inverse transform unit 830, an addition unit 840, and aprediction unit 850.

The decoding unit 810 extracts a quantized frequency-transformed blockby decoding a bitstream.

The decoding unit 810 decodes or extracts pieces of informationnecessary for decoding, as well as the quantized frequency block, bydecoding encoded data. The pieces of information necessary for decodingrefer to pieces of information necessary for decoding an encodedbitstream within the encoded data. For example, the pieces ofinformation necessary for decoding are information about block type,information about motion vector, information abouttransform/quantization type, and other various pieces of information.

That is, the decoding unit 810 extracts a quantizedfrequency-transformed block, including pixel information of a currentblock of a video, by decoding a bitstream which is data encoded by thevideo encoding apparatus 600, and transfers extracted informationnecessary for prediction to the prediction unit 850.

The prediction unit 850 predicts the current block by using theinformation necessary for prediction, which is transferred from thedecoding unit 810, in the same manner as in the prediction unit 610 ofthe video encoding apparatus 600.

The prediction unit 850 generates a prediction block of a chromacomponent from a value obtaining by interpolating a sub-sample value ofa chroma component of a reference block which is referenced by a motionvector of a chroma component of a current block, by using an FIR filterand linear interpolation. When obtaining the motion vector of the chromacomponent of the current block, by using a motion vector of a lumacomponent reconstructed from a bitstream, a prediction value isgenerated from an integer pixel value of a chroma component of areference block which is referenced by the motion vector, by using ahigh-precision FIR filter and linear interpolation.

The prediction unit 850 of the video decoding apparatus 800 according toone or more embodiments of the present disclosure generates a sub-samplein the same manner as in the prediction unit 610 of the video encodingapparatus 600 described above with reference to FIG. 6. Therefore,detailed description thereof will be omitted for avoiding redundantdescription.

The inverse quantization unit 820 inversely quantizes the quantizedfrequency-transformed block extracted from the bitstream by the decodingunit 810. The inverse transform unit 830 inversely transforms thefrequency-transformed block which is inversely quantized by the inversequantization unit 820, into time domain.

The addition unit 840 reconstructs an original pixel value of thecurrent block by adding the pixel value generated by the prediction unit850 and a residual signal reconstructed by the inverse transform of theinverse transform unit 830. The current block reconstructed by theaddition unit 840 is transferred to a frame memory 860, and is used topredict other blocks in the prediction unit 850, in some embodiments.

The frame memory 860 stores the reconstructed video and enables thegeneration of intra prediction blocks and inter prediction blocks.

The video encoding/decoding apparatus according to an embodiment of thepresent disclosure is configured by connecting a bitstream outputterminal of the video encoding apparatus 600 of FIG. 6 to a bitstreaminput terminal of the video decoding apparatus 800 of FIG. 8.

The video encoding/decoding apparatus according to at least oneembodiment of the present disclosure includes a video encoder forgenerating a prediction block of a chroma component from a valueobtained by interpolating a sub-sample value of a chroma component of areference block which is referenced by a motion vector of a lumacomponent of a current block, by using an FIR filter and linearinterpolation. The video encoder is further for generating a residualblock by subtracting the prediction block from the chroma component ofthe current block, and generating a quantized frequency-transformedblock by transforming and quantizing the residual block. The videoencoder is further for encoding the quantized frequency-transformedblock into a bitstream. The video encoding/decoding apparatus furtherincludes a video decoder for generating a quantizedfrequency-transformed block from a bitstream, and reconstructing aresidual block by inversely quantizing and inversely transforming thequantized frequency-transformed block. The video decoder further forgenerating a prediction block of a chroma component from a valueobtained by interpolating a sub-sample value of a chroma component of areference block which is referenced by a motion vector of a chromacomponent of a current block to be reconstructed, by using an FIR filterand linear interpolation, and reconstructing the current block by addingthe reconstructed residual block and the generated prediction block.

The video encoder is implemented with the video encoding apparatus 600according to one or more embodiments of the present disclosure, and thevideo decoder is implemented with the video decoding apparatus 600according to one or more embodiments.

FIG. 9 is a flow chart of a video encoding method according to at leastone embodiment of the present disclosure.

The video encoding apparatus 600 encodes a video by performing aprediction step S910 for generating a sub-sample prediction value of achroma component by using a motion vector value of a luma component in acurrent block of a video. The video encoding apparatus 600 furtherperforms a subtraction step S920 for generating a residual signal bycalculating a difference between an original pixel value of the currentblock and a predicted pixel value. The video encoding apparatus 600further performs a transform step S930 for transforming a generatedresidual signal into frequency domain by using a DCT transform or awavelet transform. The video encoding apparatus 600 further performs aquantization step S940 for quantizing the residual signal transformedinto the frequency domain. The video encoding apparatus 600 furtherperforms an encoding step S950 for encoding a quantized frequencytransform residual signal into a bitstream.

Since the prediction step S910, subtraction step S920, transform stepS930, quantization step S940 and encoding step S950 correspond to thefunctions of the prediction unit 610, subtraction unit 620, transformunit 630, quantization unit 640 and encoding unit 650, respectively,detailed descriptions thereof are omitted.

FIG. 10 is a flow chart of a video decoding method according to at leastone embodiment of the present disclosure.

The video decoding apparatus 800 receiving and storing the bitstream ofthe video through a wired/wireless communication network or cablereconstructs a current block of a video by generating a sub-sampleprediction value of a chroma component by using a motion vector value ofa luma component and decoding the video, so as to reconstruct a video inaccordance with a user's selection or an algorithm of other runningprogram.

The video decoding apparatus 800 decodes a received bitstream byperforming a decoding step S1010 for decoding a bitstream to extract aquantized frequency transform residual signal representing informationof a pixel value of a current block of a video. The video decodingapparatus 800 further performs an inverse quantization step S1020 forinversely quantizing the quantized frequency transform residual signal.The video decoding apparatus 800 further performs an inverse transformstep S1030 for inversely transforming an inversely quantized frequencytransform residual signal into time domain. The video decoding apparatus800 further performs a prediction step S1040 for generating a sub-sampleprediction value of a chroma component by using a motion vector value ofa luma component from a prediction value of a current block representedby the residual signal reconstructed by the inverse transform into timedomain. The video decoding apparatus 800 further performs an additionstep S1050 for reconstructing an original pixel value of a current blockby adding the residual signal of the current block reconstructed in stepS1030 and the predicted pixel value of each pixel of the current blockpredicted in step S1040.

Since the decoding step S1010, inverse quantization step S1020, inversetransform step S1030, prediction step S1040 and addition step S1050correspond to the operations of the decoding unit 810, inversequantization unit 820, inverse transform unit 830, prediction unit 850and addition unit 840, respectively, detailed descriptions thereof areomitted.

The video encoding/decoding method according to one or more embodimentsof the present disclosure is realized by a combination of the videoencoding method according to one or more embodiments of the presentdisclosure and the video decoding method according to one or moreembodiments of the present disclosure.

The video encoding/decoding method according to at least one embodimentof the present disclosure includes a video encoding step for generatinga prediction block of a chroma component from a value obtained byinterpolating a sub-sample value of a chroma component of a referenceblock which is referenced by a motion vector of a luma component of acurrent block, by using an FIR filter and linear interpolation. Thevideo encoding step further includes generating a residual block bysubtracting the prediction block from the chroma component of thecurrent block, and generating a quantized frequency-transformed block bytransforming and quantizing the residual block. The video encoding stepfurther includes encoding the quantized frequency-transformed block intoa bitstream. The method step further includes a video decoding step forgenerating a quantized frequency-transformed block from a bitstream. Thevideo decoding step further includes reconstructing a residual block byinversely quantizing and inversely transforming the quantizedfrequency-transformed block. The video decoding step further includesgenerating a prediction block of a chroma component from a valueobtained by interpolating a sub-sample value of a chroma component of areference block which is referenced by a motion vector of a chromacomponent of a current block to be reconstructed, by using an FIR filterand linear interpolation. The video decoding step further includesreconstructing the current block by adding the reconstructed residualblock and the generated prediction block.

The video encoding step is implemented with the video encoding stepaccording to one or more embodiments of the present disclosure, and thevideo decoding step is implemented with the video decoding stepaccording to one or more embodiments.

According to at least one embodiment of the present disclosure asdescribed above, a difference between an actual block and a predictedblock is reduced by more accurately interpolating a current block to beencoded, thereby improving encoding efficiency. Therefore, a video iseffectively reconstructed by improving compression efficiency of thecurrent block and decoding a block transformed into a bitstream inconsideration of an encoding method.

In the description above, although the components of the embodiments ofthe present disclosure are explained as assembled or operativelyconnected as a unit, the present disclosure is not intended to limititself to such embodiments. Rather, within the objective scope of thepresent disclosure, the respective components are selectively andoperatively combined in any numbers. Every one of the components arealso implemented in hardware while the respective ones are combined inpart or as a whole selectively and implemented in a computer programhaving program modules for executing functions of the hardwareequivalents. Codes or code segments to constitute such a program areeasily deduced by a person skilled in the art. The computer program isstored in computer readable media, which in operation realizes theembodiments of the present disclosure. The computer readable mediainclude magnetic recording media, optical recording media, and carrierwave media.

Although exemplary embodiments of the present disclosure have beendescribed for illustrative purposes, those skilled in the art willappreciate that various modifications, additions and substitutions arepossible, without departing from essential characteristics of thedisclosure. Therefore, exemplary embodiments of the present disclosurehave not been described for limiting purposes. Accordingly, the scope ofthe disclosure is not to be limited by the above embodiments but by theclaims and the equivalents thereof.

The invention claimed is:
 1. A video decoding apparatus comprising: adecoding unit configured to extract a quantized frequency-transformedblock from a bitstream; an inverse quantization unit configured toreconstruct a frequency-transformed block based on inversely quantizingthe quantized frequency-transformed block; an inverse transform unitconfigured to reconstruct a residual block based on inverselytransforming the frequency-transformed block; a prediction unitconfigured to generate a prediction block based on interpolating chromasub-samples of a reference block referenced by a motion vector of acurrent block; and an addition unit configured to reconstruct thecurrent block based on adding the reconstructed residual block and theprediction block, wherein the prediction unit is configured to calculatenon-divided values of a first set of sub-samples by multiplying chromainteger-pixels by integer numerators and summing the multiplied chromainteger-pixels, derive the first set of sub-samples by dividing thenon-divided values by a common denominator, and derive a second set ofsub-samples by interpolation from the non-divided values of the firstset of sub-samples, not from the first set of sub-samples which havebeen divided by the common denominator, and then division by the commondenominator.
 2. The video decoding apparatus of claim 1, wherein theprediction unit is configured to generate the chroma sub-samples of thereference block using a finite impulse response (FIR) filter.
 3. Thevideo decoding apparatus of claim 2, wherein the FIR filter is a filterwith 4 or more taps for calculating values of the sub-samples, based onfour or more chroma integer-pixels.
 4. The video decoding apparatus ofclaim 1, wherein the prediction unit is configured to interpolate up toa position of a ⅛ sub-sample of a chroma component.
 5. A video decodingmethod comprising: generating a quantized frequency-transformed blockfrom a bitstream; reconstructing a frequency-transformed block byinversely quantizing the quantized frequency-transformed block;reconstructing a residual block by inversely transforming thefrequency-transformed block; generating a prediction block based oninterpolating chroma sub-samples of a reference block referenced by amotion vector of a current block; and reconstructing the current blockby adding the reconstructed residual block and the prediction block,wherein the interpolating of the chroma sub-samples comprises:calculating non-divided values of a first set of sub-samples bymultiplying chroma integer-pixels by integer numerators and summing themultiplied integer-pixels; deriving the first set of sub-samples bydividing the non-divided values by a common denominator, when derivingthe first set of sub-samples; and deriving a second set of sub-samplesby interpolation from the non-divided values of the first set ofsub-samples, not from the first set of sub-samples which have beendivided by the common denominator, and then division by the commondenominator, when deriving the second set of sub-samples.
 6. The videodecoding method of claim 5, wherein the chroma sub-samples are generatedby using a finite impulse response (FIR) filter.
 7. The video decodingmethod of claim 6, wherein the sub-samples are generated by the FIRfilter with 4 or more taps for calculating values of the sub-samples,based on four or more integer-pixels.
 8. The video decoding method ofclaim 5, wherein the chroma sub-samples are interpolated up to aposition of a ⅛ sub-sample.